package cn.johnyu.service;

import cn.johnyu.mapper.ProductMapper;
import cn.johnyu.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public Product addProduct(Product product) {
        productMapper.addProduct(product);
        return product;
    }
}
